import request from '@/utils/request'
import { microservices } from '@/utils'

//--------------------------------项目-------------------------------------
// 新增
export function putProjectInfoApi (data) {
  return request({
    url: `${microservices.pcpesIs}/ProjectInfo`,
    method: 'put',
    data
  })
}
// 修改
export function postProjectInfoApi (data) {
  return request({
    url: `${microservices.pcpesIs}/ProjectInfo`,
    method: 'post',
    data
  })
}
// 删除
export function deleteProjectInfoByIds (ids) {
  return request({
    url: `${microservices.pcpesIs}/ProjectInfo/${ids}`,
    method: 'delete'
  })
}
// 列表信息
export function ProjectInfoApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectInfo`,
    params
  })
}
// 查询-根据ID查询（单条）
export function ProjectInfoByIdApi (id) {
  return request({
    url: `${microservices.pcpesIs}/ProjectInfo/${id}`
  })
}
// // 复制
// export function ProjectInfoCopyByIdApi (id) {
//   return request({
//     url: `${microservices.pcpesIs}/ProjectInfo/copy/${id}`
//   })
// }

//项目评估-动态生成评估模板
export function ProjectEvalInfoDynamicsTemplateApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/dynamicsTemplate`,
    params
  })
}

// 项目评估-生成项目评估
export function putProjectEvalInfoApi (data) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo`,
    method: 'put',
    data
  })
}

// 项目评估-预览模板生成的结果值
export function ProjectEvalInfoReflushValuesApi (data) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/reflushValues`,
    method: 'post',
    data
  })
}

// 项目评估-获取最新结果
export function ProjectEvalInfoPerviewValuesApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/perviewValues`,
    params
  })
}

// 项目评估-删除评估旧数据
export function ProjectEvalInfoDeleteApi (params) {
  return request({
    url: `${microservices.pcpesIs}/ProjectEvalInfo/delEvaInfo`,
    method: 'delete',
    params
  })
}



